<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="layouts::header"></head>

<body>
<nav th:replace="layouts::navbar"></nav>
<div class="container">
    <form th:action="@{/musics/save}" th:object="${music}" method="POST">
        <input type="text" placeholder="音乐类别名称" th:field="*{name}">
        <select th:field="*{category}">
            <option value="个人">个人</option>
            <option value="团队">团队</option>
        </select>

        <input type="text" placeholder="推荐歌手或团队" th:field="*{singer}">

        <input type="text" placeholder="添加音乐类别时间" th:field="*{time}">

        <textarea type="text" placeholder="输入音乐类别描述" th:field="*{description}"></textarea>
       <select th:field="*{units}" multiple="multiple">
           <option th:each="unit : ${allUnits}" th:value="${unit.unitId}" th:text="${unit.username}"></option>

       </select>

        <button type="submit">新建添加音乐类别</button>
    </form>
</div>
</body>
</html>